Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Language Guide / Part 3 - Appendixes
Appendix B - Scriptable Text Editor Dictionary / Scriptable Text Editor Object Class Definitions


Text Style Info

An object of class Text Style Info specifies the styles of a text object. The Style and Uniform Styles properties of text objects are text style info objects.

PROPERTIES
On Styles
The styles that apply to the text object.
Class: List of constants (see "Notes" later in this section)
Modifiable? Yes
Off Styles
The styles that do not apply to the text object.
Class: List of constants (see "Notes" later in this section)
Modifiable? Yes
ELEMENT CLASSES
None

COMMANDS HANDLED
Copy, Data Size, Exists, Get, Set

DEFAULT VALUE CLASS RETURNED
Record; text style info

EXAMPLES
set the style of word 1 to {On Styles:{italic}, ÿ 
   Off Styles:{bold, shadow}}
set the style of word 1 to {On Styles:{italic, bold}}
set the style of word 1 to {bold, italic}
get words whose style contains bold
NOTES
The constants that can be used in Style property lists are bold, italic, outline, underline, and shadow. For a complete description of text
styles, see "Elements of Text Objects" on page 314.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996